package com.woniu.microchargeserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@EnableFeignClients
@EnableCircuitBreaker//开启熔断器
@EnableHystrix//使用Hystrix组件，来完成熔断
//@EnableTransactionManagement
@MapperScan(basePackages = {"com.woniu.microchargeserver.common.mapper"})
@EnableEurekaClient
@SpringBootApplication
public class MicroChargeServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(MicroChargeServerApplication.class, args);
    }

}
